package com.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.biz.TUsertypeBIZ;
import com.dao.TUsertypeDAO;
import com.entity.TUsertype;

@SuppressWarnings("rawtypes")
@Service
@Transactional
public class TUsertypeBIZImpl implements TUsertypeBIZ{
	private TUsertypeDAO tUserTypeDao;
	
	@Resource
	public void settUserTypeDao(TUsertypeDAO tUserTypeDao) {
		this.tUserTypeDao = tUserTypeDao;
	}

	public void save(TUsertype transientInstance) {
		this.tUserTypeDao.save(transientInstance);
		
	}

	public void delete(TUsertype persistentInstance) {
		this.tUserTypeDao.delete(persistentInstance);
		
	}

	public TUsertype findById(String id) {
		
		return this.tUserTypeDao.findById(id);
	}

	public List findByExample(TUsertype instance) {
		
		return this.tUserTypeDao.findByExample(instance);
	}

	public List findByProperty(String propertyName, Object value) {
		
		return this.tUserTypeDao.findByProperty(propertyName, value);
	}

	public List findByName(Object name) {
		
		return this.tUserTypeDao.findByName(name);
	}

	public List findByState(Object state) {
		
		return this.tUserTypeDao.findByState(state);
	}

	public List findByRemark(Object remark) {
		
		return this.tUserTypeDao.findByRemark(remark);
	}

	public List findAll() {
		
		return this.tUserTypeDao.findAll();
	}

	public TUsertype merge(TUsertype detachedInstance) {
		
		return this.tUserTypeDao.merge(detachedInstance);
	}

	public void attachDirty(TUsertype instance) {
		this.tUserTypeDao.attachDirty(instance);
		
	}

	public void attachClean(TUsertype instance) {
		this.tUserTypeDao.attachClean(instance);
		
	}

}
